﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/javascript" src="../../function.js"></script>
<title>CompareTime 对比是否到期 </title>
<style>
body{font-size:12px; font-family:Verdana,"宋体"}
.ts{ background:#fff; margin:0 0 40px 0;}
.ts th{ color:#7B797B; background:#DEDFDE; line-height:24px;}
.ts td {padding:6px 0;}
.name { font-size:16px; font-weight:bold; border-top:1px dashed #9C9A9C; border-bottom:1px dashed #9C9A9C; color:#316AC5;}
.canshu { background:#E7E7EF;}
.red{ color:#d60000;}
.green{ color:#006939;}
.blue{ color:#316AC5;}
.yufa{ border-top:1px dashed #9C9A9C;color:#316AC5;}
.fanhui{ border-bottom:1px dashed #9C9A9C;}
.lizi{ border-bottom:1px dashed #9C9A9C;}
.beizhu{ border-bottom:1px dashed #9C9A9C;}
</style></head><body>




<table width="100%" border="0" cellpadding="0" cellspacing="1" class="ts">
<tr><th width="100">命令名称：</th><td class="name">
<a name="CompareTime "></a>CompareTime 对比是否到期
</td></tr><tr><th>命令功能：</th><td>
对比是否到期
</td></tr><tr><th>语法格式：</th><td class="yufa">
CompareTime(Year,Month,Day,Hour,Min,Sec)
</td></tr><tr><th>参数说明：</th><td class="canshu"><pre>5个参数分别对应：到期时间的年,月,日,时,分,秒</pre>

</td></tr><tr><th>返回值：</th><td class="fanhui">
到期返回-1,获取网络时间失败返回null,未到期返回距离到期剩余的秒数(配合ShanHai.SecToDay()可判断剩余天数)
</td></tr><tr><th><span class="red">脚本例子：</span>
</th><td class="lizi"><PRE id="code">  
TracePrint "剩余天数:"&amp; ShanHai.SecToDay(ShanHai.CompareTime(2017, 2, 2, 1, 1, 1))
</PRE><script type="text/javascript" src="../../write.js"></script>
</td></tr><tr><th>备注：</th><td class="beizhu"><pre>此功能配合ShanHai.SecToDay()可判断剩余天数</pre>

</td></tr></table>




</body>
</html>